<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const obj = { a: 1 };
      const arr = [1, 2, 3];

      const objStr = JSON.stringify(obj);
      const newObj = JSON.parse(objStr);

      console.log(obj, newObj);

      console.log(arr.join(",").split(","));
    </script>
  </body>
</html>
